package com.decent.common.monitor.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 运维系统监控sql管理
 *
 * @author wangyx
 */
@Mapper
public interface SystemMonitorDao {
    /**
     * 心跳监控
     *
     * @param key 监控键
     * @return 数据库值
     */
    @Select("select monitor_value from tbl_system_monitor where monitor_key = #{key}")
    String monitor(@Param("key") String key);
}
